home *** CD-ROM | disk | FTP | other *** search
/ Aminet 6 / Aminet 6 - June 1995.iso / Aminet / dev / gui / js_tools123.lha / js_tools / Install < prev    next >
Encoding:
Text File  |  1995-02-27  |  3.1 KB  |  153 lines

  1. ; JS_TOOLS Library Installer Script
  2. ; by Jürgen Schmitz
  3.  
  4. ;--------------------------------------------------------------------
  5. ;set text vars
  6. ;
  7.  
  8. (set #inst
  9.   (cat "Installation script of\njs_tools.library\n\n"
  10.        "for more details read the manual.\n\n"
  11.        "The library is copyright (c) by J.Schmitz [SOFT]\n"
  12.        "\nthe library may be copyed and used free - it's FREEWARE\n"
  13. ))
  14.  
  15. (set #copylib
  16.   (cat "js_tools.library will be copyed to 'libs' as all other libraries."
  17. ))
  18.  
  19. (set #includes
  20.   (cat "If you want to use 'js_tools' as programmer you may"
  21.        "choose the includes and docs and where to copy them.\n\n"
  22.        "(The C includes have some additional information, so you "
  23.        "should read them anyway.)"
  24. ))
  25.  
  26. (set #inclAutodoc
  27.   (cat "Autodocs"
  28. ))
  29.  
  30. (set #inclAutodoc-drawer
  31.   (cat "Set drawer to copy autodocs into"
  32. ))
  33.  
  34. (set #inclC
  35.   (cat "C & ASM includes (mostly SAS/C)"
  36. ))
  37.  
  38. (set #inclC-drawer
  39.   (cat "Set drawer to copy includes into"
  40. ))
  41.  
  42. (set #inclKP
  43.   (cat "Kick-Pascal (KP) includes"
  44. ))
  45.  
  46. (set #inclKP-drawer
  47.   (cat "Set drawer to copy KP includes into\n"
  48.        "(this are unit sources, so select you unit sources drawer)"
  49. ))
  50. (set #inclKP-drawer_2
  51.   (cat "Set a 2nd drawer to copy KP includes into\n"
  52.        "(this is an object file, so select the drawer of your "
  53.        "precompiled units)"
  54. ))
  55.  
  56. (set #inclFD
  57.   (cat "FD file (e.g. for AmigaBasic.....)"
  58. ))
  59.  
  60. (set #inclFD-drawer
  61.   (cat "Set drawer to copy FD file into"
  62. ))
  63.  
  64. (set #exit
  65.   (cat "js_tools.library is installed."
  66. ))
  67.  
  68. ;--------------------------------------------------------------------
  69. ;install
  70. ;
  71.  
  72. (message #inst)
  73.  
  74. (welcome)
  75.  
  76. (set @default-dest "libs:")
  77.  
  78. (copylib (prompt #copylib)
  79.          (source "libs/js_tools.library")
  80.          (help @copylib-help)
  81.          (dest "libs:")
  82.          (confirm)
  83. )
  84.            
  85.  
  86. (set res
  87.  (askoptions (prompt #includes)
  88.              (help @askchoice-help)
  89.              (default 0)
  90.              (choices #inclAutodoc #inclC #inclFD #inclKP)
  91.  )
  92. )
  93.  
  94. (if (in res 0)
  95.  ( (set toDir
  96.      (askdir (prompt #inclAutodoc-drawer)
  97.              (default "Work:")
  98.              (help @askdir-help))
  99.    )
  100.  
  101.    (copyfiles (source "programmers/Autodocs/js_tools.doc")
  102.               (dest toDir))
  103.  
  104.  )
  105. )
  106. (if (in res 1)
  107.  ( (set toDir
  108.      (askdir (prompt #inclC-drawer)
  109.              (default "include:")
  110.              (help @askdir-help))
  111.    )
  112.  
  113.    (copyfiles (source "programmers/include")
  114.               (dest toDir)
  115.               (all))
  116.  
  117.  )
  118. )
  119. (if (in res 2)
  120.  ( (set toDir
  121.      (askdir (prompt #inclFD-drawer)
  122.              (default "Work:")
  123.              (help @askdir-help))
  124.    )
  125.  
  126.    (copyfiles (source "programmers/fd")
  127.               (dest toDir)
  128.               (all))
  129.  
  130.  )
  131. )
  132. (if (in res 3)
  133.  ( (set toDir
  134.      (askdir (prompt #inclKP-drawer)
  135.              (default "KP:Unit-Sources")
  136.              (help @askdir-help))
  137.    )
  138.    (set toDir_2
  139.      (askdir (prompt #inclKP-drawer_2)
  140.              (default "KP:Unit")
  141.              (help @askdir-help))
  142.    )
  143.  
  144.    (copyfiles (source "programmers/Kick-Pascal/js_tools.p")
  145.               (dest toDir))
  146.    (copyfiles (source "programmers/Kick-Pascal/lvHookCode.o")
  147.               (dest toDir_2))
  148.  
  149.  )
  150. )
  151.  
  152. (exit #exit)
  153.